<?php
//search for config.php and if not found do install
require_once (APP_ROOT.'/config/include_paths.php');
if ( file_exists( APP_ROOT.'/config/config.php') ) {
/** The config file exists */
require_once ('config.php');
} else {

?>	

<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml"><head>
	<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
	<title>Soberpress › Error</title>
	<link href="config/install.css" rel="stylesheet" type="text/css" media="all" />
</head>
<body id="error-page">
	<p>There doesn't seem to be a <code>config.php</code> file. I need this before we can get started.  You can create a <code>config.php</code> file through the following web interface, but if this doesn't work you can  manually create the file.</p><p><a class="button" href="config/setup-config.php">Create a Configuration File</a></p>

</body></html>

<?php 
} ?>

